Repository navigation
feat(notify): add one-tap notification presets - #618
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5 tasks done
whes1015
force-pushed
the
feat/notification-presets
branch
from
October 16, 2026 18:19
ee0deaa to
d03a69c
Compare
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
Member
Author
whes1015
added this pull request to stack #626
October 16, 2026 19:21
whes1015
force-pushed
the
feat/notification-presets
branch
from
October 16, 2026 19:31
d03a69c to
26f30e8
Compare
Member
Author
whes1015
force-pushed
the
feat/notification-presets
branch
from
October 16, 2026 19:37
26f30e8 to
36f5459
Compare
Member
Author
Platform: ios New(zh-Hant): iOS「設定」裡 DPIP 的通知頁面多了一個連結,點了會直接打開 app 內的通知設定 New(en-US): iOS Settings now links from DPIP's notification page straight to the app's own notification settings
Platform: all New(zh-Hant): 通知設定新增「建議」「全部」「僅緊急」三種快速設定,一次調整所有頻道,並標示目前設定屬於哪一種或為「自訂」 New(en-US): notification settings gain Recommended, All and Emergency-only presets that set every channel at once, and show which one your settings match or that they are custom
Platform: all New(zh-Hant): 首次啟動新增「通知偏好」步驟,可直接選擇建議、全部或僅緊急,不必逐項設定九個頻道 New(en-US): first launch adds a step to pick Recommended, All or Emergency-only alerts instead of setting nine channels one by one
whes1015
force-pushed
the
feat/notification-presets
branch
from
October 16, 2026 19:44
36f5459 to
f65d012
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
這個 PR 做了什麼
通知有 9 個頻道,原本新使用者要在設定頁一個一個決定。這個 PR 加上通知預設組合(建議/全部/僅緊急/自訂),放在通知設定頁最上方,並在新手引導最後新增一步,讓第一次使用的人只做一個決定。
各組合開了什麼
改動內容
正式程式碼
cfbac05b通知設定頁加上一鍵預設組合NotifyRepository.setChannel,和逐頻道設定走同一條路,包括既有的 401 復原。api.md沒有寫這些端點的限制,沿用NotifyRepositoryImpl遇到連續呼叫被 429 後採用的 2 秒間隔;9 個頻道全改約 16 秒。36f54595新手引導最後選擇通知組合無障礙:真正的 radio group(念出選取狀態和位置);自訂只在目前狀態符合時可選;套用中會念出「套用中…」。有測試確認 2 倍字級、320 px 寬的螢幕排得下。
測試
相關 issue
沒有對應的 issue。
怎麼驗
tool/commit.sh --push通過(analyze、codegen、全部 Dart 測試、l10n)。檢查清單
tool/check/commits.sh通過tool/commit.sh --push)AppLocalizations,12 個語系都有翻譯